package myjava.g_enum;

/**
 * @Auther: cty
 * @Date: 2019/11/7 下午9:35
 * @Description: 测试枚举
 * @version: 1.0
 */
public class A_TestEnum {
    public static void main(String[] args) {
        System.out.println(Season.SPRING);
        Season a = Season.AUTUMN;

        switch(a){
            case SPRING:
                System.out.println("春天来了，播种的季节");
                break;
            case SUMMER:
                System.out.println("夏天来了，游泳的季节");
                break;
            case AUTUMN:
                System.out.println("秋天来了，收获的季节");
                break;
            case WINTER:
                System.out.println("冬天来了，冬眠的季节");
                break;
        }
    }

    enum Season{
        SPRING,SUMMER,AUTUMN,WINTER
    }
}
